#ifndef PLANE_H_
#define PLANE_H_

#include "object3d.h"

class Plane : Object3D
{
public:
	Plane(d_Vec3f n, float dd, Material *m);
	bool intersect(const Ray &r, Hit &h, float tmin);
	bool inside(d_Vec3f point);
protected:
	Material *material;
	d_Vec3f normal;
	float d;
};

#endif /*PLANE_H_*/
